<?php
require_once("xforms/Core.php");

class XForms_label extends XForms_Core {
  protected $tpl = '<label class="xforms_label" {renderFor}>{renderLabel}</label>';
  function renderFor(){
    return ' for="'. $this->node->parentNode->getAttribute("id") . '"';
  }
  function renderLabel(){
    return htmlentities($this->getValue(), ENT_NOQUOTES, 'utf-8');
  }
}